<!--<!DOCTYPE html>-->
<!--<html lang="en">-->
<!--<head>-->
<!--  <meta charset="UTF-8">-->
<!--  <meta name="viewport" content="width=device-width, initial-scale=1.0">-->
<!--  <title>Flexbox Demo</title>-->
<!--  <style>-->
<!--    .container {-->
<!--      display: flex;-->
<!--      flex-direction: row; /* 可以设置为 row, column, row-reverse, column-reverse */-->
<!--      justify-content: center; /* 可以设置为 flex-start, flex-end, center, space-between, space-around */-->
<!--      align-items: center; /* 可以设置为 flex-start, flex-end, center, baseline, stretch */-->
<!--      height: 100vh;-->
<!--    }-->
<!--    .box {-->
<!--      width: 100px;-->
<!--      height: 100px;-->
<!--      margin: 10px;-->
<!--      background-color: #f06;-->
<!--      color: white;-->
<!--      display: flex;-->
<!--      justify-content: center;-->
<!--      align-items: center;-->
<!--    }-->
<!--  </style>-->
<!--</head>-->
<!--<body>-->
<!--<div class="container">-->
<!--  <div class="box">1</div>-->
<!--  <div class="box">2</div>-->
<!--  <div class="box">3</div>-->
<!--</div>-->
<!--</body>-->
<!--</html>-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Grid Layout Demo</title>
  <style>
      .container {
          display: grid;
          grid-template-columns: repeat(3, 1fr); /* 创建3列，宽度相等 */
          grid-gap: 10px; /* 网格间的间隙 */
          height: 100vh;
          padding: 10px;
      }
      .box {
          background-color: #f06;
          color: white;
          display: flex;
          justify-content: center;
          align-items: center;
          height: 100px;
      }
  </style>
</head>
<body>
<div class="container">
  <div class="box">1</div>
  <div class="box">2</div>
  <div class="box">3</div>
  <div class="box">4</div>
  <div class="box">5</div>
  <div class="box">6</div>
</div>
</body>
</html>
